<div class="sectionHeader">
    <div class="sectionHeader">
        <hr>
        <button type="button" onclick="takeout.copy('${ctxPath!}/dbtable/listDialog',1, 'adv')"
                class="btn btn-info mainButtonRight">复制
        </button>
        <button type="button" onclick="takeout.del('${ctxPath!}/image/del',1, '')" class="btn btn-info mainButtonRight">
            全部删除
        </button>
        <button type="button" onclick="takeout.copyTable('${ctxPath!}/dbtable/listDialog',1, 'adv')"
                class="btn btn-info mainButtonRight">全部复制
        </button>
        <!--<button type="button" class="btn btn-info mainButtonRight"><a href="javascript:takeout.openEdit('${ctxPath!}/adv/edit', null);" class="mianAcolor">+ 新增</a></button>-->
    </div>
    <div class="sectionHeader">
        <hr>
        <button type="button" onclick="takeout.copyByGenderCategoryType('${ctxPath!}/dbtable/listDialog',1, 'adv')"
                class="btn btn-info mainButtonRight">按性别、类型、类别复制
        </button>
        <button type="button" onclick="takeout.copyByGenderCategory('${ctxPath!}/dbtable/listDialog',1, 'adv')"
                class="btn btn-info mainButtonRight">按性别、类型复制
        </button>

        <button type="button" onclick="takeout.copyByGender('${ctxPath!}/dbtable/listDialog',1, 'adv')"
                class="btn btn-info mainButtonRight">按性别复制
        </button>

    </div>
</div>
<form id="queryForm" action="${ctxPath!}/adv/list" method="POST">
    <div class="sectionForm">
        <div class="form-inline">
            <div class="sectionFormFirstRow">
                <div class="form-group sectionFormLabel">
                    <label class="mainColor">名称:</label>
                    <input type="tel" name="title" class="form-control" id="mainPhone" required=""/>
                </div>
                <!--<div class="form-group sectionFormLabel">
                    <label class="mainColor">显示:</label>
                    <input type="tel" name="value" class="form-control" id="mainPhone" required="" placeholder="请输入显示">
                </div>-->
                <button type="button" onclick="takeout.ajaxFormMainPanel('queryForm')" class="btn btn-info"
                        style="width:90px;">查询
                </button>
            </div>
        </div>
    </div>
    <div class="sectionFormContent">
        <div class="sectionFormHeadline">
        </div>
        <hr>
        <table class="table table-bordered table-hover">
            <thead>
            <tr>
                <th style="width: 50px;"><a href="javascript:takeout.selectAll();">全选</a></th>
                <th>标题</th>
                <th>类型</th>
                <th>类别</th>
                <th>性别</th>
                <th>APPID</th>
                <th>图片</th>
                <th style="width: 70px;">操作</th>
            </tr>
            </thead>
            <% for(adv in data.list){ %>
            <tr class="a">
                <td style="width: 50px;text-align:center"><input class="a" type="checkbox" value="${adv.id}"/></td>
                <td>${adv.title}</td>
                <td>${oneToManyFuncValue(adv.categoryid!'0', 'sys_dict', 'name')}</td>
                <td>${oneToManyFunc(adv.categoryid!'0', 'category', 'name')}</td>
                <td>${dictFunc('sex',adv.gender!'1')}</td>
                <td>${adv.wxappid!'无'}</td>
                <td><a href="${adv.img!}" target="_blank" style="margin-left: 10px;">${adv.img})</a></td>
                <td style="width: 70px;">
                    <a id="a" href="javascript:takeout.openEdit('${ctxPath!}/adv/edit?id=${adv.id}', null)">修改</a>
                    <a class="a" href="javascript:takeout.del('${ctxPath!}/adv/del' ,0, '${adv.id}')">删除</a>
                </td>
            </tr>
            <%}%>
        </table>
        <div id="splitPageDiv" class="splitPage">
            <% include("../common/comm_page.html", {"divId" : "manage_content", "formId" : "queryForm", "splitPageDiv" :
            "splitPageDiv"}){} %>
        </div>
    </div>
</form>